package com.zmx.core.handler;

import java.lang.reflect.InvocationTargetException;

/**
 * @Description: 任务处理抽象基类
 * @ClassName: IJobHandler
 * @Author zhaomxr
 * @Date 2021-12-17 10:27
 */
public abstract class IJobHandler {

    /**
     * 执行目标任务
     */
    public abstract void execute() throws InvocationTargetException, IllegalAccessException;

    /**
     * 停止目标任务
     */
    public void init() throws InvocationTargetException, IllegalAccessException {
        //
    }

    /**
     * 销毁
     */
    public void destiry() throws InvocationTargetException, IllegalAccessException {
        //
    }
}
